/**
 * config.js v1.0.0 by @businka and @kreedev
 * Copyright 2013 Koltsovs Inc.
 **/

var Logger = {
    LogLevel: Defaults.LogLevel,
    SetLogLevel: function (logLevel) {
        this.LogLevel = logLevel;
    },
    Info: function (text) {
        if (this.LogLevel >= 0) {
            console.log(text);
        }
    },
    Warning: function (text) {
        if (this.LogLevel >= 1) {
            console.warn(text);
        }
    },
    Error: function (text) {
        if (this.LogLevel >= 2) {
            console.error(text);
        }
    },
    Alarm: function (text) {
        if (this.LogLevel >= 3) {
            alert(text);
        }
    }
};